package org.example.minsuapi.controller;


import org.example.minsuapi.pojo.rat_num;
import org.example.minsuapi.service.ratnumService;
import org.example.minsuapi.util.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ratnumController {
    @Autowired
    private ratnumService ratnumService;
    @GetMapping("queryAllratnum")
    public ResponseResult<List<rat_num>> queryAllratnum(){
        List<rat_num>pf =ratnumService.queryAllratnum();
        return new ResponseResult<>("200","查询成功",pf);
    }
}
